﻿using System;
using System.Runtime.Serialization;

namespace PH.Model.Analyses.Schools
{
    [DataContract]
    public class S4StudentModel:MBase
    {
        [Model]
        [DataMember]
        public System.Guid ArchiveGuid { get; set; }
        [Model]
        [DataMember]
        public int StudentID { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> TeacherID { get; set; }
        [Model]
        [DataMember]
        public Nullable<decimal> StandardScore { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> AdditionalScore { get; set; }
        [Model]
        [DataMember]
        public Nullable<decimal> TotalScore { get; set; }
        [Model]
        [DataMember]
        public string Subjects { get; set; }
        [Model]
        [DataMember]
        public string StudentNo { get; set; }
        [Model]
        [DataMember]
        public byte Sex { get; set; }
        [Model]
        [DataMember]
        public int GradeCode { get; set; }
        [Model]
        [DataMember]
        public string RealName { get; set; }
        [Model]
        [DataMember]
        public string OriSchoolCode { get; set; }
        [Model]
        [DataMember]
        public System.Guid StudentGuid { get; set; }
        [Model]
        [DataMember]
        public string ClassName { get; set; }
        [Model]
        [DataMember]
        public int CIndex { get; set; }
        [Model]
        [DataMember]
        public int ClassID { get; set; }
        [Model]
        [DataMember]
        public int SchoolID { get; set; }
        [Model]
        [DataMember]
        public System.Guid SchGuid { get; set; }
        [Model]
        [DataMember]
        public string SchoolName { get; set; }
        [Model]
        [DataMember]
        public string SchoolCode { get; set; }
        [Model]
        [DataMember]
        public int SchType { get; set; }
        [Model]
        [DataMember]
        public int GradeLevel { get; set; }
        [Model]
        [DataMember]
        public int ScoreLevel { get; set; }
        [Model]
        [DataMember]
        public string TeacherName { get; set; }
        [Model]
        [DataMember]
        public DateTime CreatedOn { get; set; }
    }

    [DataContract]
    public class S4StudentCollection : ModelCollectionBase<S4StudentModel> { }

    public class S4StudentQuery : AnalysisQuery
    {
        public int ClassID { get; set; }
    }
}
